package top.lingkang.finalsession.jakarta;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletRequestWrapper;
import jakarta.servlet.http.HttpSession;

/**
 * springboot3.x 支持
 *
 * @author lingkang
 * Created by 2024/03/10
 */
public class FinalServletRequestWrapper extends HttpServletRequestWrapper {
    private HttpSession session;

    public FinalServletRequestWrapper(HttpServletRequest request, HttpSession session) {
        super(request);
        this.session = session;
    }

    public FinalServletRequestWrapper(HttpServletRequest request) {
        super(request);
    }

    public HttpSession getSession() {
        return session;
    }

    public void setSession(HttpSession session) {
        this.session = session;
    }
}
